package hl.demosample.viewmodel.state

import hl.demosample.app.util.ColorUtil
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.callback.databind.IntObservableField
import me.hgj.jetpackmvvm.callback.databind.StringObservableField
import me.hgj.jetpackmvvm.callback.livedata.UnPeekLiveData

/*
* path: DemoSample 
* Author: 86133
* Create: 2021-06-01 16:17
* Changes (from 2021-06-01)
* Desc:
*/
class MeViewModel:BaseViewModel() {

    var name = StringObservableField("请先登录~")

    var integral = IntObservableField(0)

    var info = StringObservableField("id：--　排名：-")

    var imageUrl = StringObservableField(ColorUtil.randomImage())

    var testString = UnPeekLiveData<String>()
}